package cn.neusoft;

import cn.neusoft.annodi.UserController;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringTest03 {

    @Test
    public void test01(){

        ApplicationContext appContext =
                new ClassPathXmlApplicationContext("applicationContext_annoDI.xml");
        UserController userController = (UserController) appContext.getBean("userController");
        userController.add();
    }
}
